package com.rickpan.dto.openrouter;

/**
 * OpenRouter消息DTO
 */
public class OpenRouterMessage {

    private String role;
    private String content;

    // 构造函数
    public OpenRouterMessage() {}

    public OpenRouterMessage(String role, String content) {
        this.role = role;
        this.content = content;
    }

    // Builder模式
    public static Builder builder() {
        return new Builder();
    }

    public static class Builder {
        private String role;
        private String content;

        public Builder role(String role) {
            this.role = role;
            return this;
        }

        public Builder content(String content) {
            this.content = content;
            return this;
        }

        public OpenRouterMessage build() {
            return new OpenRouterMessage(role, content);
        }
    }

    // Getter 和 Setter 方法
    public String getRole() {
        return role;
    }

    public void setRole(String role) {
        this.role = role;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    @Override
    public String toString() {
        return "OpenRouterMessage{" +
                "role='" + role + '\'' +
                ", content='" + content + '\'' +
                '}';
    }
}
